import tkinter 
from tkinter import *
def a():
   for b in range(1,100):
        a(b)      
"""
def a(n):
    if n > 1:
   # 查看因子
        for i in range(2,int(math.sqrt(n))+1):
            if  (n % i)== 0:
                
                break
        else:

            
           # listb.insert(0,"12")
     else:
         return
"""         
        


window = tkinter.Tk()
window.title("质数计算程序")
window.geometry("700x500")
l=tkinter.Label(window,
   text='质数计算程序',
   bg="white",
   font=('Arial',12)
   )

li     = ['C','python','php','html','SQL','java']
movie  = ['CSS','jQuery','Bootstrap']
listb  = Listbox(window)          #  创建两个列表组件
listb2 = Listbox(window)
b=Button(window,text="12",command=a)
for item in li:                 # 第一个小部件插入数据
    listb.insert(0,item)
 
for item in movie:              # 第二个小部件插入数据
    listb2.insert(0,item)
 
listb.place(x=40,y=160, anchor=W, width=120, height=200)                    # 将小部件放置到主窗口中
listb2.place(x=240,y=160, anchor=W, width=120, height=200)
l.place(x=420,y=80, anchor=W, width=120, height=40)
b.place(x=420,y=160, anchor=W, width=120, height=40)



window.mainloop()